package user;

import book.BookList;
import operation.IOperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: syyyy
 * Date: 2025-07-08
 * Time: 18:02
 */
public abstract class User {
    private String name;

    public IOperation[] iOperations;

    public User(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public abstract int menu();

    public void doOperation(int i,BookList bookList){
        iOperations[i].work(bookList);
    }
}
